package com.linkhub.oms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 预占库存流水表
 * </p>
 *
 * @author xieyu
 * @since 2024-06-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_preemption_stock_flow")
@ApiModel(value="PreemptionStockFlowEntity对象", description="预占库存流水表")
public class PreemptionStockFlowEntity implements Serializable {


    @ApiModelProperty(value = "标识")
    @TableId(value = "Fid", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    @TableField("Fuser_id")
    private String userId;

    @ApiModelProperty(value = "商品sku")
    @TableField("Fsku_id")
    private String skuId;

    @ApiModelProperty(value = "仓库")
    @TableField("Fstash_name")
    private String stashName;

    @ApiModelProperty(value = "批次号")
    @TableField("Fbatch_id")
    private Long batchId;

    @ApiModelProperty(value = "业务类型")
    @TableField("Fbusiness_type")
    private String businessType;

    @ApiModelProperty(value = "业务标识")
    @TableField("Fbusiness_no")
    private String businessNo;

    @ApiModelProperty(value = "数量")
    @TableField("Famount")
    private Integer amount;

    @ApiModelProperty(value = "存量")
    @TableField("Fbefore_amount")
    private Integer beforeAmount;

    @ApiModelProperty(value = "结余")
    @TableField("Fafter_amount")
    private Integer afterAmount;

    @ApiModelProperty(value = "创建时间")
    @TableField("Fcreate_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("Fupdate_time")
    private LocalDateTime updateTime;


}
